וַיֹּ֣אמֶר לָהּ֩ אֶלְקָנָ֨ה אִישָׁ֜הּ עֲשִׂ֧י הַטּ֣וֹב בְּעֵינַ֗יִךְ שְׁבִי֙ עַד־גָּמְלֵ֣ךְ אֹת֔וֹ אַ֛ךְ יָקֵ֥ם יְהוָ֖ה אֶת־דְּבָר֑וֹ וַתֵּ֤שֶׁב הָֽאִשָּׁה֙ וַתֵּ֣ינֶק אֶת־בְּנָ֔הּ עַד־גָּמְלָ֖הּ אֹתֽוֹ׃
האָט אלקנה איר מאַן געזאָגט צו איר: טו װאָס איז גוט אין דײַנע אױגן; בלײַב ביז דו װעסט אים אַנטװײנען. זאָל נאָר גאָט מקיים זײַן זײַן װאָרט. איז די פֿרױ געבליבן; און זי האָט געזױגן איר קינד ביז זי האָט אים אַנטװײנט.
Tze'enah Ure'enah
“May the Lord fulfill His word” [1:23]. The Midrash writes that every day a heavenly Voice is hard that says that a child will be born whose name will be Samuel. He will be very righteous and every woman who has a son will let him be called Samuel. She thinks that this will be the righteous Samuel. When they saw every child named Samuel did not have the good deeds, they said, this is not the righteous Samuel. However, when Samuel the son of Hannah came, the whole world said that this is the correct Samuel the prophet. He has good deeds from childhood.9Yalkut Shimoni, I Samuel, Remez, 78.
Rashi
But may Adonoy fulfill His word. Because you requested of Him male offspring,39Above, verse 11. and Eili foretold you through Divine inspiration, "the God of Yisroel will grant your request,"40Above, verse 17. may 'ה fulfill His word. This is the simple interpretation. In Midrash Aggadah, however, Rabbi Nechemyah said in the name of Rabbi Shmuel, the son of Rabbi Yitzchok: Every day a Divine voice would resound throughout the world and say, "A righteous man is destined to arise, by the name of Shmuel." Thereupon, every woman who bore a son, would name him Shmuel. Once they saw his deeds, they would say, "This is not [the] Shmuel." But when this one [Shmuel] was born and people saw his deeds, they said, "Apparently this one is the one [i.e., expected righteous man]." This is what he [Elkonoh] meant when he said, "May Adonoy fulfill His word," i.e., that this be the righteous Shmuel.
Metzudat David
What is proper in your eyes: Meaning to say, do according to your wish, and remain until you wean him.